package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.CheckGroup;
import com.itheima.pojo.Role;

import java.util.HashMap;
import java.util.List;
import java.util.Set;

public interface RoleManageDao {

    public Set<Role> findByUserId(Integer userId);

    Page<CheckGroup> findByCondition(String queryString);

    void addRole(Role role);

    void addRoleIdAndPerssionId(HashMap<String,Integer> map);

    Role findById(int id);

    List<Integer> findPermissionIdsByRoleId(Integer id);

    void edit(Role role);

    void deletePremission(int id);

    void deleteRole(int id);
}
